﻿using System;
using System.Collections.Generic;
using System.Text;
using Jc.MicroDesigner.Objects;
using Jc.MicroDesigner.Management;

namespace Jc.MicroDesigner.Tests
{
    /// <summary>
    /// Тест схем
    /// </summary>
    public abstract class TestCase
    {
        /// <summary>
        /// Функция тестирования
        /// </summary>
        /// <returns></returns>
        public abstract List<SignalContainer> TestIt(ObjectManager tst);

        /// <summary>
        /// Стартовое время
        /// </summary>
        public int StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// Продолжительность
        /// </summary>
        public int TimeLength
        {
            get;
            set;
        }

        /// <summary>
        /// Имя теста
        /// </summary>
        public string TestName
        {
            get;
            set;
        }

        /// <summary>
        /// Создать тест
        /// </summary>
        /// <param name="start">Начальное время</param>
        /// <param name="length">Продолжительность</param>
        /// <param name="testname">Имя</param>
        public TestCase(int start, int length, string testname)
        {
            StartTime = start;
            TimeLength = length;
            TestName = testname;
        }
    }
}